package cn.chencaiju.spring;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration("classpath:context-anno.xml")
public class SpringTest2 {
	@Autowired
	PostService service;
	
	@Test public void test1() {
		System.out.println(service);
	}
}
